/*
方法重载
1.方法名一样
2.参数列表不一样【个数， 类别， 顺序】
3，返回值不做要求
 */
public class test17 {
    public static int add(int a,int b){
        return a+b;
    }

    public static double add(double a,double b){
        return a+b;
    }
    public static void main(String[] args) {
        int x = 10;
        int y = 20;
         int ret = add(x,y);
        System.out.println(ret);

        double d1 = 1.0;
        double d2 = 2.0;
        double ret2 = add(d1,d2);
        System.out.println(ret2);
    }
}
